package org.example;

import org.example.FFMDemon.foreignDemo;
import org.junit.Test;

import java.lang.foreign.MemorySegment;

public class ForeignMainTest {
    //操作内存
    @Test
    public void ManipulateMemory(){
        MemorySegment ni = foreignDemo.memory('你');
        System.out.println(ni);
    }

    // 打印Printf
    @Test
    public void ManipulateMemory2(){
        foreignDemo.stdPrintfTest("测试123");
    }
}
